<template>
  <div class="home">
    <span>用户名</span>
    <input type="text" />
    <span>密码</span>
    <input type="text" />
    <button @click="toHome">登录</button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    toHome() {
      this.$router.push("/home");
    },
  },
};
</script>
